import request from "./index.js"


const DICT_HOST = '/api/sys/dict/items/page'
/* 
	首页
*/

//获取首页轮播图数据
export function getSwiperData(data) {
	request({
		url: '/api/contenthub/information-databas/selectInformationByLocation',
		method: 'GET',
		data: data
	}, e => {
		return e
	})
}
// 获取通知栏
export function getNnoticeData() {
	request({
		url: '/api/volunteer/notify/SelectNotityByDisplayDuration',
		method: 'GET',
	}, e => {
		console.log('获取通知栏', e)
		return e
	})
}



/* 
	志愿活动	
*/

//获取活动类别
export function getActivityTypeData(id) {
	request({
		url: '/api/sys/dict/items/page',
		method: 'GET',
		data: {
			dictId: id
		}
	}, e => {
		return e
	})
}
//获取活动列表
export function getActivity(data) {
	request({
		url: '/api/volunteer/activity/activity-listPage',
		method: 'GET',
		data: data,
		statusInList:'1'
	}, e => {
		return e
	})
}

/*
	找组织
*/

//获取组织类别
export function getdictData() {
	request({
		url: '/api/sys/dict/items',
		method: 'GET',
		data: {}
	}, e => {
		return e
	})
}
//获取组织列表
export function getOrganization() {
	request({
		url: '/api/volunteer/teamjs/team-viewPage',
		method: 'GET',
		data: data
	}, e => {
		return e
	})
}

/*
	积分榜单
*/
//获取组织榜单
export function getTeamData() {
	request({
		url: '/api/volunteer/organizational-points/page?formName=OrganizationalPoints',
		method: 'GET',
		data: {
			sort: { "qtyPoints": "descend" },
		}
	}, e => {
		return e
	})
}
//获取个人榜单
export function getPersonData() {
	request({
		url: '/api/volunteer/member-points/page?formName=MemberPoints',
		method: 'GET',
		data: {
			sort: { "integral": "descend" },
		}
	}, e => {
		return e
	})
}

/*
	进行评价/请假申请
*/

//获取评价列表  		6：评价活动列表/ 1：请假申请列表
export function gitEvalutateList(data) {
	request({
		url: '/api/volunteer/activity/SelectActivityByUser',
		method: 'GET',
		data: {
			status: data
		}
	}, e => {
		return e
	})
}
/*
	活动签退
*/
//获取活动签退列表
export function getMemberData(id) {
	request({
		url: '/api/volunteer/activity-bd',
		method: 'GET',
		data: {
			formId: id
		}
	}, e => {
		return e
	})
}